﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;
using System.Data;
using Model;
using System.Data.Entity;

namespace DAL_EF
{
    public class LevelRepository : ILevelRepository
    {


        public List<Model.Level> selectLevel()
        {
            using (var edm = new ProjectbEntities())
            {

                var level = (from l in edm.Levels
                             select l).ToList<Level>();


                return EntityConverter.ToModelLevel(level);
            }
        }
    }
}
